package day0318.Inner;

/**
 * @Author Stringzhua
 * @Date 2024/3/19 11:31
 * description:
 */
public class Demo01 {
    public static void main(String[] args) {
        //方式1
        //1.创建外部类对象
//        Outer outer=new Outer();
        //2.依靠外部类创建内部类对象
//        Outer.Inner inner = outer.new Inner();

        //方式2
        Outer.Inner inner2 = new Outer().new Inner();
        inner2.sayHello("测试");
    }
}
